<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<style type="text/css">
		
	</style>
</head>
<body>
	<script type="text/javascript">
		//空心正方形
		function box(a){
			for(var i=0;i<=a-2;i++){
				for(var j=0;j<=a;j++){
					if (j==a){
					document.write("☺<br />");
					}else if (i==0||j==0||j==a-2){
						document.write("☺");
					}else{
						document.write("☹");
						}	
					}
				}
			}
		box(5);
		
		
		
	</script>
</body>
</html>